package com.itheima.demo03functionalinterface;

import java.util.function.Function;

public class Demo05Function {
    //使用Lambda表达式将字符串转成数字
    public static void main(String[] args) {
        getNumber(Integer::parseInt);
    }
    public static void getNumber(Function<String,Integer> function){
        Integer num1 = function.apply("10");
        System.out.println(num1);
    }
}
